<extend name="Public/base" />
<block name="head">
	<link href="__KINDEDITOR__/themes/default/default.css"
	rel="stylesheet" type="text/css">
</block>
<block name="body">
<ul class="breadcrumb">
	<li><a href="javascript:history.back(-1)">返回上一页</a> <span
		class="divider">/</span></li>
	<li class="active">{$meta_title}</li>
</ul>
<div class="row-fluid">
	<form class="form-horizontal" action="{:U('edit')}">
		<input type="hidden" name="cid" value="{$info.cid|default=''}">
		<div class="control-group">
			<label class="control-label" for="title">栏目标题</label>
			<div class="controls">
				<input type="text" id="title" name="title" class="span8"
					placeholder="栏目标题" value="{$info.title}">
			</div>
		</div>
		<div class="control-group">
			<label class="control-label" for="ename">别名</label>
			<div class="controls">
				<input type="text" name="ename" id="ename" class="span8"
					value="{$info.ename}" placeholder="别名">
			</div>
		</div>
		<div class="control-group">
			<label class="control-label" for="pid">上级栏目</label>
			<div class="controls">
				<select id="pid" name="pid" class="span8">
				<option value="0">顶级栏目</option>
					<volist name="category" id="vo">
					<option value="{$vo.cid}">{$vo.title_show}</option>
					</volist>
				</select>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label" for="type">栏目模型</label>
			<div class="controls">
				<select id="type" name="type" class="span8">
					<option value="1">单页</option>
					<option value="0">列表</option>
				</select>
			</div>
		</div>

		<div class="control-group">
			<label class="control-label" for="status">状态</label>
			<div class="controls">
				<select id="status" name="status" class="span8">
					<option value="1">启用</option>
					<option value="0">禁用</option>
				</select>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label" for="sort">排序</label>
			<div class="controls">
				<input type="text" name="sort" id="sort" class="span8"
					value="{$info.sort}" placeholder="排序">
			</div>
		</div>
		<div class="control-group">
			<label class="control-label" for="content">内容</label>
			<div class="controls">
				<textarea rows="3" name="content" id="content" class="span8"
					placeholder="栏目描述">{$info.content}</textarea>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label" for="keywords">关键字</label>
			<div class="controls">
				<textarea rows="3" name="keywords" id="keywords" class="span8"
					placeholder="关键字">{$info.keywords}</textarea>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label" for="description">栏目描述</label>
			<div class="controls">
				<textarea rows="3" name="description" id="description" class="span8"
					placeholder="栏目描述">{$info.description}</textarea>
			</div>
		</div>
		<div class="control-group">
			<div class="controls">
				<button type="submit" class="btn ajax-post"
					target-form="form-horizontal">保存</button>
				<button type="button" class="btn"
					onclick="javascript:history.back(-1)">取消</button>
			</div>
		</div>
	</form>
</div>
</block>
<block name="script">
<script charset="utf-8" src="__KINDEDITOR__/kindeditor-min.js"></script>
		<script charset="utf-8" src="__KINDEDITOR__/lang/zh_CN.js"></script>
		
 <script type="text/javascript">
setValue("pid", {$info.pid|default = 0});
  setValue("status", {$info.status|default = 1});
  var editor;
  KindEditor.ready(function(K) {
  	editor = K.create('textarea[name="content"]', {
  		allowFileManager : true
  	});

  });
  </script> </block>
